ig.module(
	'game.entities.finishButton'
)
.requires(
	'impact.entity',
        'game.entities.base.baseButton'
)
.defines(function()
{
    EntityFinishButton = EntityBaseButton.extend(
    {
        normalButton: new ig.Image("media/images/finish.png"),
        overButton: new ig.Image("media/images/finishOver.png"),
	
	init: function(x, y, settings)
	{
	    this.parent(x, y, settings);	    
	},
	
        onClick: function()
        {
	    if (confirm("Tem certeza que deseja finalizar a prova?") == true) {	    
		this.parent();
		ig.global.submitAnswers();
	    }
        },	
    });
});